NULL = 

robd_CFLAGS=`pkg-config --cflags librob-1.0`
robd_LDFLAGS=`pkg-config --libs librob-1.0`


AUTOMAKE_OPTIONS = subdir-objects

SUBDIRS = \
	po \
	$(NULL)

AM_CPPFLAGS = \
	$(ROBD_CFLAGS) \
	-include $(CONFIG_HEADER) \
	-I $(top_srcdir)/src \
	$(NULL)

BUILT_SOURCES = src/robd.vala.stamp

bin_PROGRAMS = robd

robd_VALASOURCES = \
	src/main.vala \
	$(NULL)
#	src/robmodule.vala 


robd_SOURCES = \
	$(robd_VALASOURCES:.vala=.c) \
	$(robd_VALASOURCES:.vala=.h) \
	$(NULL)

src/robd.vala.stamp: $(robd_VALASOURCES)
	$(VALAC) --vapidir=../lib/ --pkg=librob-1.0 -C --basedir $(top_srcdir) $^
	touch $@

robd_LDADD = \
	$(ROBD_LIBS) \
	$(NULL)

EXTRA_DIST = \
	intltool-extract.in \
	intltool-update.in \
	intltool-merge.in \
	$(robd_VALASOURCES) \
	src/robd.vala.stamp \
	$(NULL)

DISTCLEANFILES = \
	intltool-extract \
	intltool-update \
	intltool-merge \
	po/.intltool-merge-cache \
	$(NULL)

